<template>
	<view>
		<view>
			<u-cell-group title="案例演示">
				<u-cell-item v-for="(item,index) in list" :key="index" icon="setting-fill" :title="item.title" @tap="toPath(item.path)"></u-cell-item>
			</u-cell-group>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[
					{title:'vuex演示',path:'/pages/example/store/store'},
					{title:'api接口',path:'/pages/example/api/api'},
					{title:'轮播',path:'/pages/example/swiper/swiper'},
					{title:'宫格',path:'/pages/example/grid/grid'},
					{title:'app升级',path:'/pages/example/updapp/test'},
					{title:'json表单',path:'/pages/example/form/test'},
					{title:'信息列表',path:'/pages/example/list/list'}
				]
			}
		},
		onLoad() {
			
		},
		methods: {
			toPath(url){
				uni.navigateTo({
					url:url
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 40rpx;
	}
	.text-area {
		display: flex;
		justify-content: center;
	}
	
	.title {
		font-size: 28rpx;
		color: $u-content-color;
	}
</style>
